From: Paul Eggert Date: Sun, 11 Nov 2018 18:01:40 +0000 (-0800) Subject: Pacify gcc -Wmaybe-uninitialized without X11-XCB X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~4571 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b87c874aa1016939ccbee4cd3bd1384726cb2220;p=emacs.git Pacify gcc -Wmaybe-uninitialized without X11-XCB I ran into this problem on Ubuntu 18.04.1 LTS. * src/xterm.c (get_current_wm_state) [!USE_XCB]: Mark reply_data as UNINIT here too. --- diff --git a/src/xterm.c b/src/xterm.c index f8ea787e8df..3a7e31e7129 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10644,7 +10644,7 @@ get_current_wm_state (struct frame *f, int rc, actual_format; Atom actual_type; unsigned char *tmp_data = NULL; - Atom *reply_data; + Atom *reply_data UNINIT; #endif *sticky = false;